 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}
        
body {
    background-color: #f4f4f4;
    color: #333;
}
        
.top-bar {
    height: 30px;
    background-color: white;
    line-height: 30px;
    padding: 0 50px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
        }
        
.left-nav, .right-nav {
    display: flex;
}
        
.nav-item {
    color: #999;
    text-decoration: none;
    margin: 0 8px;
    white-space: nowrap;
}
        
.nav-item:hover {
    color: #e4393c;
}
        
.divider {
    color: #ddd;
}
        
.user-menu-container {
    position: relative;
    display: inline-block;
}
        
.user-menu {
    position: absolute;
    right: 0;
    width: 280px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
}
        
.user-menu-container:hover .user-menu {
    display: block;
}
        
.menu-section {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}
        
.menu-title {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}
        
.menu-items {
    display: flex;
    flex-wrap: wrap;
}
        
.menu-item {
    width: 50%;
    margin-bottom: 10px;
    float: left;
}
        
.menu-item a {
    color: #333;
    font-size: 12px;
    text-decoration: none;
}
        
.menu-item a:hover {
    color: #e4393c;
}
        
.full-width {
     width: 100%;
}
        

/* 顶部导航栏 */
        .top-bare {
            background-color: #e1251b;
            color: white;
            padding: 10px 0;
        }
        
        .top-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            width: 500px;
            height: 120px;
            background: url('../img/779336fde4b11164.png') !important;
            text-indent: -9999px;
            object-fit: contain;
        }
        
        .search-bar {
            flex: 1;
            margin: 0 20px;
            position: relative;
        }
        
        .search-input {
            width: 100%;
            height: 40px;
            border-radius: 20px;
            border: none;
            padding: 0 20px;
            font-size: 14px;
        }
        
        .search-btn {
            background-color: #e1251b;
            color: white;
            border: none;
            height: 40px;
            width: 80px;
            border-radius: 20px;
            position: absolute;
            right: 0;
            top: 0;
            cursor: pointer;
        }
        
        .extra-links {
            display: flex;
            gap: 15px;
        }
        
        /* 促销横幅 */
.promo-banner {
            background-color: #e1251b;
            padding: 10px 0;
        }
        
        .promo-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            padding: 0 20px;
        }
        
        .promo-item {
            background-color: white;
            border-radius: 4px;
            text-align: center;
            padding: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            height: 100px;
            position: relative;
        }
        
        .promo-item img {
            width: 50px;
            height: 50px;
            margin-bottom: 5px;
        }
        
        .promo-item-text {
            font-size: 14px;
            height: 25px;
            width: 100px;
            align-content: center;
            border-radius: 3px;
            color: white;
            background-color: #e1251b;
        }
        
        /* PLUS会员日特殊样式 */
        .promo-item.plus-member {
            background: linear-gradient(to bottom, #ff6b6b, #ff9c6b);
            flex: 2;
            height: 120px;
            color: white;
            padding: 15px;
        }
        
        .promo-title {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .promo-subtitle {
            font-size: 18px;
            margin-bottom: 8px;
        }
        
        .promo-highlight {
            background-color: white;
            color: #e1251b;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 16px;
            display: inline-block;
            margin-top: 5px;
        }
        
        /* 其他促销项样式调整 */
        .promo-item:not(.plus-member) {
            flex: 1;
            height: 100px;
        }


        /* 主要内容区 */
        .main-content {
            max-width: 1200px;
            margin: 20px auto;
            display: flex;
            gap: 10px;
            background-color: white;
            border-radius: 5px;
        }


        /* 左侧主分类导航 */
        .category-container {
            max-width: 1200px;
            margin: 20px auto;
            display: flex;
            position: relative;
        }
        
        
        .category-nav {
            width: 200px;
            background-color: white;
            border-radius: 4px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            z-index: 10;
        }
        
        .category-item {
            padding: 10px 15px;
            border-bottom: 1px solid #f5f5f5;
            cursor: pointer;
            font-size: 14px;
            position: relative;
        }
        
        .category-item:hover {
            background-color: #f5f5f5;
            color: #e1251b;
        }
        
        .category-item::after {
            content: ">";
            position: absolute;
            right: 15px;
            color: #999;
        }

        /* 横向分类标签 */
        .category-tabs {
            display: flex;
            border-bottom: 2px solid #e1251b;
            padding: 0 10px;
        }
        
        .category-tab {
            padding: 10px 15px;
            cursor: pointer;
            font-size: 14px;
            position: relative;
            color: #666;
        }
        
        .category-tab.active {
            color: #e1251b;
        }
        
        .category-tab.active::after {
            content: "";
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #e1251b;
        }
        
        /* 右侧子分类内容 - 默认隐藏 */
        .subcategory-content {
            display: none;
            position: absolute;
            left: 200px;
            top: 0;
            /* width: calc(100% - 200px); */
            background-color: white;
            border-radius: 4px;
            padding: 15px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            min-height: 400px;
        }
        
        /* 鼠标悬停时显示子分类 */
        .category-nav:hover .subcategory-content {
            display: block;
        }
        
        .subcategory-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #f5f5f5;
            background-color: white;
        }
        
        .subcategory-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-right: 15px;
        }
        
        .subcategory-tabs {
            display: flex;
            gap: 15px;
        }
        
        .subcategory-tab {
            padding: 5px 10px;
            cursor: pointer;
            font-size: 14px;
            color: #666;
        }
        
        .subcategory-tab.active {
            color: #e1251b;
            border-bottom: 2px solid #e1251b;
        }
        
        .subcategory-list {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            background-color: white;
        }
        
        .subcategory-group {
            width: 180px;
        }
        
        .subcategory-group-title {
            font-size: 14px;
            font-weight: bold;
            color: #666;
            margin-bottom: 10px;
            padding-left: 5px;
            position: relative;
        }
        
        .subcategory-group-title::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 14px;
            background-color: #e1251b;
        }
        
        .subcategory-items {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .subcategory-item {
            font-size: 13px;
            color: #666;
            padding: 2px 5px;
        }
        
        .subcategory-item:hover {
            color: #e1251b;
            background-color: #f5f5f5;
            border-radius: 3px;
        }
        
        /* 右侧品牌展示 */
        .brand-showcase {
            margin-top: 20px;
            padding: 15px;
            background-color: #f8f8f8;
            border-radius: 4px;
        }
        
        .brand-title {
            font-size: 14px;
            font-weight: bold;
            color: #e1251b;
            margin-bottom: 10px;
        }
        
        .brand-logos {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .brand-logo {
            width: 80px;
            height: 40px;
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 3px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
            font-size: 12px;
            font-weight: bold;
        }
        
        /* 促销广告 */
        .promo-ad {
            margin-top: 20px;
            text-align: center;
        }
        
        .promo-ad img {
            width: 100%;
            max-width: 800px;
            border-radius: 4px;
        }
        
        /* 中间内容区 */
        .content-center {
            flex: 1;
            margin: 0 10px;
        }
        
        /* 轮播图样式 */
        .slider-container {
            position: relative;
            width: 100%;
            max-width: 1200px;
            margin: 20px auto;
            overflow: hidden;
        }
 
        .slider {
            display: flex;
            transition: transform 0.5s ease;
        }
 
        .slide {
            min-width: 100%;
            height: 300px;
            background-color: #e4393c;/* 京东红色  */
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
 
        .slide-content {
            text-align: center;
            color: white;
            z-index: 2;
            position: relative;
            padding-top: 50px;
            margin-left: -300px;
            margin-top: -40px;
        }
 
        .slide-title {
            font-size: 36px;
            font-weight: bold;
            margin-bottom: 15px;
        }
 
        .slide-subtitle {
            font-size: 20px;
            margin-bottom: 20px;
        }
 
        .slide-image {
            position: absolute;
            left: 1px;
            /* right: 100px; */
            /* bottom: 0; */
            height: 250px;
            z-index: 1;
        }
 
        .slider-indicators {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            z-index: 3;
        }
 
        .indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            margin: 0 5px;
            cursor: pointer;
        }
 
        .indicator.active {
            background-color: white;
        }
        
        /* 商品模块 */
        .product-modules {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .product-cards {
            background-color: rgb(247, 248, 252);
            border-radius: 10px;
            padding: 15px;
            /* width: calc(33.333% - 7px); */
            margin-bottom: 10px;
        }
        
        .product-card h3 {
            color: #e1251b;
            margin-bottom: 10px;
            font-size: 16px;
        }
        
        .product-list {
            display: flex;
            gap: 10px;
        }
        
        .product-item {
            flex: 1;
            text-align: center;
        }
        
        .product-item img {
            width: 100px;
            height: 100px;
            margin-bottom: 5px;
        }
        
        .product-price {
            color: #e1251b;
            font-weight: bold;
        }
        
        /* 右侧用户区 */
        .user-panel {
            width: 200px;
            background-color: white;
            border-radius: 10px;
            padding: 15px;
            text-align: center;
        }
        
        .greeting {
            font-size: 16px;
            margin-bottom: 10px;
        }
        
        .login-btn {
            background-color: #e1251b;
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 20px;
            cursor: pointer;
            margin: 10px 0;
        }
        
        .user-functions {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin-top: 15px;
        }
        
        .user-function-item {
            width: 40px;
            height: 40px;
            background-color: #f5f5f5;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }



        .category-tabs {
            display: flex;
            margin-bottom: 20px;
            width: 100%;
            justify-content: center;
        }
 
        .category-tab {
            padding: 10px 20px;
            background-color: #fff;
            border: 1px solid #ddd;
            margin-right: 10px;
            cursor: pointer;
        }
 
        .product-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
        }
 
        .product-card {
            width: 220px;
            background-color: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            padding: 10px;
        }
 
        .product-image {
            width: 100%;
            height: 180px;
            object-fit: contain;
            background-color: #f9f9f9;
        }
 
        .product-info {
            padding: 10px;
        }
 
        .product-title {
            font-size: 14px;
            margin-bottom: 5px;
            height: 40px;
            overflow: hidden;
        }
 
        .product-price {
            color: #e4393c;
            font-size: 18px;
            font-weight: bold;
            margin-top: 10px;
        }
 
        .product-sales {
            color: #999;
            font-size: 12px;
        }
 
        .product-tag {
            display: inline-block;
            background-color: #e4393c;
            color: white;
            padding: 2px 5px;
            font-size: 12px;
            border-radius: 3px;
            margin-bottom: 5px;
        }       

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            border: 1px solid red; /* 红框效果 */
        }



        
.service-slogan {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px 0;
            border-bottom: 1px solid #eee;
        }
 
        .slogan-item {
            display: flex;
            align-items: center;
            margin: 0 30px;
        }
 
        .slogan-item .icon {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: #ffe4e1;
            color: #ff6754;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 18px;
            font-weight: bold;
            margin-right: 10px;
        }
 
        .slogan-item .text {
            font-size: 16px;
            font-weight: bold;
        }
 
        .footer-links {
            display: flex;
            justify-content: center;
            padding: 30px 0;
            border-bottom: 1px solid #eee;
        }
 
        .footer-column {
            margin: 0 50px;
        }
 
        .footer-column h3 {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
        }
 
        .footer-column ul {
            list-style: none;
        }
 
        .footer-column ul li {
            font-size: 12px;
            color: #999;
            line-height: 22px;
        }
 
        .footer-bottom {
            display: flex;
            justify-content: center;
            padding: 20px 0;
            font-size: 12px;
            color: #999;
            text-align: center;
            flex-wrap: wrap;
        }
 
        .footer-bottom a {
            color: #999;
            text-decoration: none;
            margin: 0 10px;
        }
 
        .footer-bottom .copyright {
            margin: 10px 0;
            width: 100%;
        }




/* 登录界面 */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

.login-container img {
    width: 150px;
    height: 150px;
    margin: 20px 0;
}

.close-btn {
    padding: 10px 20px;
    background-color: #ff6700;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.close-btn:hover {
    background-color: #e55b00;
}

/* 登录按钮 */
.denglu-btn {
    /*padding: 10px 20px;*/          /* 内边距，增加按钮的大小 */
    background-color: white;   /* 按钮背景颜色 */
    color: #999;                /* 按钮文本颜色 */
    border: none;                /* 去掉边框 */
    /*border-radius: 5px;*/          /* 圆角边框 */
    cursor: pointer;             /* 鼠标悬停时显示手形光标 */
    /*font-size: 16px;*/             /* 字体大小 */
    transition: background-color 0.3s; /* 背景颜色过渡效果 */
}

/* 悬停时的背景颜色 */
.denglu-btn:hover {
    color: #e55b00;   
}

.denglu-btn:active {
    background-color: #d45500;   /* 点击时的背景颜色 */
    transform: scale(0.98);      /* 点击时的缩放效果 */
}